<template>
  <div class="dishonesty">
    <div class="dishonesty_head"></div>

    <!-----列表----->
    <div class="dis_art">
      <el-descriptions class="margin-top" title="处罚详情" :column="1" :size="size" border>
        <el-descriptions-item label="供应商/专家名称" :label-style="{width: '220px'}" >
          {{detail.name}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">统一社会信用代码/身份证号码</template>{{detail.bianma}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">企业地址</template>{{detail.dizhi}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">违规详情</template>{{detail.weiguiqingxing}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">处理结果</template>{{detail.chulijieguo}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">违规生效范围（单位）</template>{{detail.shengxiaofanwei1}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">违规生效范围（品种）</template>{{detail.shengxiaofanwei2}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">组织形式</template>{{detail.zuzhixingshi}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">处理依据</template>{{detail.chuliyiju}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">处理日期</template>{{detail.zantingshijian}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">处理部门</template>{{detail.chulibumen}}
        </el-descriptions-item>
      </el-descriptions>  
      
    </div>

    <div class="special_foot">
      <div class="foot_cont flex flex-space-around">
        <span>版权所有：东部战区总医院</span>
        <span>技术支持：医学信息数据室</span>
      </div>
    </div>
  </div>
</template>
<style lang="scss" scoped>
::v-deep.el-pagination.is-background.el-pagination--small .btn-next,
::v-deep.el-descriptions-row th {
  width: 100px;
}
.custom-label {
  width: 100px !important;
}
</style>

<script setup name="eight">
import { getcaigouOne } from "@/api/yxzx/dishonesty";
export default {
  components: {
  },
  data() {
    return {
      detail: {}
    }
  },
  created() {
   this.edit()
  },
  methods: {
    // 查询详情
    edit() {
      getcaigouOne(this.GetQueryString('id')).then((response) => {
        this.detail = response.data
      });
    },
    // 获取地址栏的参数
    GetQueryString(name) {
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
      var r = window.location.search.substr(1).match(reg);
      if (r != null) {
        return decodeURI(r[2]);
      } else {
        return null;
      }
    },
  }
  
} 
</script>
   